<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://shiro.apache.org/tags" prefix="shiro"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>恒铸智能柜管理平台</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/layui/css/layui.css"media="all" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/public.css" media="all" />
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/date.format.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
</head>
<body class="childrenBody">
	<form class="layui-form">
		<style>
.layui-form-item {
	display: inline-block;
}
</style>
		<div class="layui-form-item select" id="selectOnline" style="width: 200px;">
			<label class="layui-form-label">状态:</label>
			<div class="layui-input-block">
				<select lay-filter="selectOnline">
					<option value="-1">全部</option>
					<option value="0">不在线</option>
					<option value="1">在线</option>
				</select>
			</div>
		</div>

		<input type="hidden" id="compId" value="${compId}">

		<div class="layui-form-item selectComp" id="selectComp">
			<label class="layui-form-label">公司:</label>
			<div class="layui-input-block">
				<select lay-filter="selectComp">
					<option value="-1">全部</option>
					<c:forEach items="${comps }" var="list">
						<option value="${list.compId }">${list.compName }</option>
					</c:forEach>
				</select>
			</div>
		</div>

		<div class="demoTable layui-form-item like">
			<label class="layui-form-label">搜索：</label>
			<div class="layui-inline">
				<input class="layui-input" id="like" name="like" autocomplete="off"
					placeholder="请输入ID">
				<dl style="display: none;"></dl>
			</div>
			<a class="layui-btn" style="margin-top: -4px;">搜索</a>
		</div>
		<shiro:hasPermission name="main:boxReplace">
			<div class=" layui-form-item" style="float:right;margin-right: 40px;">
				<a class="layui-btn replace">储物柜更换</a>
			</div>
		</shiro:hasPermission>
		<div style="clear:both"></div>
		<br/>
		<span class="replaceBox" style="display:none">
			<div class=" layui-form-item">
				<label class="layui-form-label">将储物柜：</label>
				<div class="layui-inline">
					<input class="layui-input beReplaced" id="" autocomplete="off" placeholder="" disabled>
				</div>
			</div>
			<div class=" layui-form-item">
			<span class="exchange" title="互换" style="cursor:pointer">替换为:&nbsp;</span>
				<div class="layui-inline">
					<input class="layui-input replacement" id="" autocomplete="off" placeholder="">
				</div>
			</div>
			<div class=" layui-form-item">
				<a class="layui-btn affirmReplace" style="margin-top: -4px;">确认更换</a>
				<a class="layui-btn layui-btn-primary cancel" style="margin-top: -4px;">取消</a>
			</div>
		</span>
		<table id="stateList" lay-filter="stateList"></table>
		<!--操作-->
	<script type="text/html" id="stateListBar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">详情</a>
    </script>
		<script type="text/html" id="caseNoBuy">
      <span class="layui-red">d.caseNoBuy</span>
    </script>

		<script type="text/html" id="isOnline">
        {{#  if(d.isOnline == "否"){ }}
        <span class="layui-red">否</span>
        {{#  } else { }}
        	是
        {{#  }}}
    </script>
		<script type="text/html" id="isNormal">
        {{#  if(d.isNormal == "否"){ }}
        <span class="layui-red">否</span>
        {{#  } else { }}
        	是
        {{#  }}}
    </script>
	</form>
</body>
<script type="text/javascript">
<shiro:hasPermission name="caseUseTime:setUseEndTime">
	sessionStorage.setItem("caseUseTime", "setUseEndTime");
</shiro:hasPermission>
</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/stateList.js"></script>

</html>